#ifndef CSPRITE_H
#define CSPRITE_H

#include <string>

#include <SDL.h>

class CSprite
{
public:
	CSprite(const std::string& fname);
	CSprite(SDL_Surface* surface, const SDL_Rect& rect, const SDL_Rect& dest_rect);
	virtual ~CSprite();
	SDL_Surface* GetSurface() const;
	const SDL_Rect& GetRect() const;
private:
	CSprite(const CSprite& );
	CSprite& operator=(const CSprite& );

	SDL_Surface *Surface;
	SDL_Rect Rect;
	int PosX;
	int PosY;
	bool FromFile;
};

#endif // CSPRITE_H
